package com.example.demo.alex.mapper;

import com.example.demo.alex.model.Resource;
import com.example.demo.alex.model.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName ResourceMapper
 * @Description TODO
 * @Author zjg
 * @Date 2018/12/2514:44
 * @Version 2.0
 */
@Mapper
public interface ResourceMapper {
   Resource getResourceByUrl(@Param("url") String url);

   List<Role> getRoles(@Param("id") Long id);
}
